home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / x11 / networke / xfirepow.000 / xfirepow / xfirepower-0.84 / client / libsprite / sector.c < prev    next >
C/C++ Source or Header  |  1995-05-23  |  903b  |  38 lines

  1. #include "allincludes.h"
  2.  
  3. void
  4. W_DrawSectorHighlight(window, x, y, width, h, color)
  5.     W_Window window;
  6.     int     x, y, width, h;
  7.     W_Color color;
  8. {
  9.     Window  win;
  10. #ifdef YUCK
  11.     XRectangle r[2];
  12.  
  13.     r[0].x = (short) x;
  14.     r[0].y = (short) y;
  15.     r[0].width = (unsigned short) width;
  16.     r[0].height = (unsigned short) h;
  17.     r[1].x = (short) x + 2;
  18.     r[1].y = (short) y + 2;
  19.     r[1].width = (unsigned short) width - 4;
  20.     r[1].height = (unsigned short) h - 4;
  21.  
  22.     win = W_Void2Window(window)->drawable;
  23.     XDrawRectangles(W_Display, win, colortable[color].contexts[3],
  24.             r, 2);
  25. #else
  26.     XRectangle r[1];
  27.  
  28.     r[0].x = (short) x + 2;
  29.     r[0].y = (short) y + 2;
  30.     r[0].width = (unsigned short) width - 4;
  31.     r[0].height = (unsigned short) h - 4;
  32.  
  33.     win = W_Void2Window(window)->drawable;
  34.     XDrawRectangles(W_Display, win, colortable[color].contexts[3],
  35.             r, 1);
  36. #endif
  37. }
  38.